package com.member.common.enums;

import lombok.Getter;

import java.util.Objects;

@Getter
public enum ResponseStatuslEnum {

    UNREPLIED(0,"未回复"),
    REPLIED(1,"已回复"),
    FOLLOW_UP_UNREPLIED(2,"追评未回复"),
    FOLLOW_UP_REPLIED(3,"已追评回复"),
    ;
    private final Integer key;
    private final String desc;

    ResponseStatuslEnum(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public static ResponseStatuslEnum getByKey(Integer _key) {
        for (ResponseStatuslEnum item : ResponseStatuslEnum.values()) {
            if (Objects.equals(item.getKey(), _key)) {
                return item;
            }
        }
        return null;
    }
}
